<template>
    <el-upload
        class="upload-demo"
        drag
        :headers="myHeaders"
        :on-change="handleChange"
        action="/api/upload/image"
        name="file">
        <i class="el-icon-upload"></i>
        <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
    </el-upload>
</template>

<script>
export default {
    data(){
        return {
            myHeaders: {
                Authorization: window.sessionStorage.getItem("tokenStr")
            }
        }
    },
    methods:{
        handleChange(){
           
           
        }
    }
}
</script>

<style>

</style>